package system

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type SysPrescriptionRouter struct {}

// InitSysPrescriptionRouter 初始化 sysPrescription表 路由信息
func (s *SysPrescriptionRouter) InitSysPrescriptionRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	sysPrescriptionRouter := Router.Group("sysPrescription").Use(middleware.OperationRecord())
	sysPrescriptionRouterWithoutRecord := Router.Group("sysPrescription")
	sysPrescriptionRouterWithoutAuth := PublicRouter.Group("sysPrescription")
	{
		sysPrescriptionRouter.POST("createSysPrescription", sysPrescriptionApi.CreateSysPrescription)   // 新建sysPrescription表
		sysPrescriptionRouter.DELETE("deleteSysPrescription", sysPrescriptionApi.DeleteSysPrescription) // 删除sysPrescription表
		sysPrescriptionRouter.DELETE("deleteSysPrescriptionByIds", sysPrescriptionApi.DeleteSysPrescriptionByIds) // 批量删除sysPrescription表
		sysPrescriptionRouter.PUT("updateSysPrescription", sysPrescriptionApi.UpdateSysPrescription)    // 更新sysPrescription表
	}
	{
		sysPrescriptionRouterWithoutRecord.GET("findSysPrescription", sysPrescriptionApi.FindSysPrescription)        // 根据ID获取sysPrescription表
		sysPrescriptionRouterWithoutRecord.GET("getSysPrescriptionList", sysPrescriptionApi.GetSysPrescriptionList)  // 获取sysPrescription表列表
	}
	{
	    sysPrescriptionRouterWithoutAuth.GET("getSysPrescriptionPublic", sysPrescriptionApi.GetSysPrescriptionPublic)  // sysPrescription表开放接口
	}
}
